<?php
namespace app\controllers;
use yii\web\Controller;

/**
 * Created by PhpStorm.
 * User: Kau
 * Date: 2017/12/30
 * Time: 15:51
 */

class IndexController extends Controller {

    public function actionIndex() {
        // 去掉yii2默认的布局
        // 1.
        //$this->layout = false;
        //return $this->render("index");
        $this->layout = 'layout1';
        return $this->render("index");

    }



}